<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>后台登录</title>
    <meta name="author" content="DeathGhost"/>
    <link rel="stylesheet" type="text/css" href="/Public/Css/admin/style.css"/>
    <style>
        body {
            height: 100%;
            background: #16a085;
            overflow: hidden;
        }

        canvas {
            z-index: -1;
            position: absolute;
        }
    </style>
    <script src="/Public/Js/home/jquery-1.11.3.js"></script>
    <script src="/Public/Js/layer/layer.js"></script>   
    <script src="/Public/Js/admin/verificationNumbers.js"></script>
    <script src="/Public/Js/admin/Particleground.js"></script>
    <script>
        $(document).ready(function () {
            //粒子背景特效
            $('body').particleground({
                dotColor: '#5cbdaa',
                lineColor: '#5cbdaa'
            });
            //验证码
            $("body").keydown(function(e){
                if(e.keyCode==13){
                    $('.submit_btn').trigger('click');
                }
            });
            // createCode();
            $(".submit_btn").click(function(){
                $.post('/index.php/Index/login',$("#loginForm").serialize(),function(data){
                    if(data['status']){
                        window.location.href="/index.php/Index/index";
                    }
                    layer.msg(data['msg'])
                })
            });
        });
    </script>
</head>
<body>
<dl class="admin_login">
    <dt>
        <strong>SOKOLOV后台管理系统</strong>
        <em>Management System</em>
    </dt>
    <form method='post' action="/index.php/Index/login" id="loginForm">
        <dd class="user_icon">
            <input type="text" placeholder="账号" class="login_txtbx" name="username"/>
        </dd>
        <dd class="pwd_icon">
            <input type="password" placeholder="密码" class="login_txtbx" name="password"/>
        </dd>
        <!-- <dd class="val_icon">
            <div class="checkcode">
                <input type="text" id="J_codetext" placeholder="验证码" maxlength="4" class="login_txtbx" name="code">
                <canvas class="J_codeimg" id="myCanvas" onclick="createCode()">对不起，您的浏览器不支持canvas，请下载最新版浏览器!</canvas>
            </div>
            <input type="button" value="验证码核验" class="ver_btn" onClick="validate();">
        </dd> -->
        <dd>
            <input type="button" value="立即登陆" class="submit_btn"/>
        </dd>
    </form>
    <dd>
        <p>© 2015-2016 DeathGhost 版权所有</p>
        <p>陕B2-20080224-1</p>
    </dd>
</dl>
</body>
</html>